<script setup lang="ts">
import Layout from './components/Layout.vue'
import { computed } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()

// 判断是否为公共页面（不需要后台管理布局）
const isPublicPage = computed(() => {
  return route.path === '/competition/grouping' || route.path === '/login'
})
</script>

<template>
  <Layout v-if="!isPublicPage">
    <router-view />
  </Layout>
  <router-view v-else />
</template>

<style>
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
